#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
	int N, M, a[15] = { 0 };
	cin >> N >> M;
	for (int i = N; i <= M; i++)
	{
		int n = i;
		while (n != 0)
		{
			int t = n % 10;
			n = n / 10;
			a[t]++;
		}
	}
	for (int i = 0; i <= 9; i++)
	{
		cout << a[i] << " ";
	}
	return 0;
}